package club.monkeywood.service.buyer.impl;

import club.monkeywood.dataobject.OrderDetail;
import club.monkeywood.dataobject.Production;
import club.monkeywood.enums.ResponseEnum;
import club.monkeywood.exception.SellException;
import club.monkeywood.repository.OrderDetailRepository;
import club.monkeywood.repository.ProductionInfoRepository;
import club.monkeywood.service.buyer.OrderDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderDetailServiceImpl implements OrderDetailService {

    @Autowired
    private OrderDetailRepository orderDetailRepository;

    @Autowired
    private ProductionInfoRepository productionInfoRepository;

    @Override
    public OrderDetail save(OrderDetail orderDetail) {
        return orderDetailRepository.save(orderDetail);
    }

}
